using System.Collections;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

[AddComponentMenu("Customize/UI/SetTextOutline")]
[RequireComponent(typeof(TMP_Text))]
public class SetTMPText : MonoBehaviour
{
    public TMP_Text text;
    public Color color = new Color(1, 1, 1, 1);
    public float width = 0.184f;

    public void Awake()
    {
        text = GetComponent<TMP_Text>();
    }

    // Start is called before the first frame update
    void Start()
    {
        TMPFontSetting.SetOutline(text, width, color);
    }
}
